EM
pedido scripts

Chão que faz o player fica rodando

Por Emooooo, 03 de set. de 2018 em Scripts

3
1.2k
EmoooooE
03 de setembro de 2018 às 20:31

queria um chão que faz o player fica rodando para evitar o char logar , para treiner . +rep

1 mês depois...
HolyMaNH
05 de outubro de 2018 às 08:48

o server jah faz isso pelo mapa, abre seu mapa pelo RME clica no piso aonde o player irá ficar atacando e coloca como no-logout(é uma opção q fica no menu da direita) .. 

 

                             \/

image.png.abbebd5a987100ee7da37fde52400c99.png

Kuro o ShinigaK
05 de outubro de 2018 às 23:31

Creditos, Night Wolf.

 

local trainerst = 456488

function helpTrainer(uid, pos)
	look = getCreatureLookDirection(uid)
	look = look < 3 and look + 1 or 0
	doCreatureSetLookDirection(uid, look)
	doSendMagicEffect(pos, 12)
	
	if getPlayerFood(uid) < 100 then
		doPlayerFeed(uid, 100)
		doCreatureSay(uid, "+ Food", TALKTYPE_MONSTER)
	end
	
	addEvent(function()
		if isPlayer(uid) and getCreaturePosition(uid).x == pos.x and getCreaturePosition(uid).y == pos.y and getCreaturePosition(uid).z == pos.z then
			helpTrainer(uid, pos)
		end
	end, 1000)
return true
end	


function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	helpTrainer(cid, position)
	setPlayerStorageValue(cid,trainerst,1)
return true
end

function onStepOut(cid)
    setPlayerStorageValue(cid,trainerst,-1)
	return true
end